<div class="sidebar">
    <!-- menu dọc-->
    <div class="menu-popup">
        <ul class="menu-sub1">
            <?php  
            $menu=  main_Menu();
            //print_r($menu);
            if(is_array($menu)){
            foreach($menu as $me){
            ?>
            <li>
                <a  href="<?php echo home_url()."?wpsc_product_category=".$me->slug;?>">
                    <h4><?php echo $me->name;?></h4>
                    <h5><?php // echo $me->description; ?></h5>
                </a>
                <div class="menu-expand">
                    <div class="menu-gradient">
                        <div class="menu-shadow">&nbsp;</div>
                        <?php //print_r(get_Image_Category($me->term_id)); ?>
                        <?php if(get_Image_Category($me->term_id)->meta_value!=''){ ?>
                            <img class="menu-outlet" src="<?php echo home_url();?>/wp-content/uploads/wpsc/category_images/<?php echo get_Image_Category($me->term_id)->meta_value; ?>"/>
                        <?php }?>
                        <div class="menu-content">
                            <?php $menu_sub01=main_Menu($me->term_id); ?>
                            <?php if(is_array($menu_sub01) && $menu_sub01!=null){$i=0; ?>
                            <?php foreach($menu_sub01 as $msub01){ $i++;?>
							
							<?php if($i<3){ ?>
							<?php if($i==1)echo '<div class="fleft">'; ?>
                            <div class="menu-list">
                                <a href="<?php echo  home_url()."?wpsc_product_category=".$msub01->slug;?>"><label><?php echo $msub01->name; ?></label></a>
                                <!--<h3>Mua hàng outlet</h3>
                                <h4>Trực tiếp từ chính hãng tại mỹ</h4>-->
                                
								<ul class="fleft01" style="width:150px; margin-top:15px;">
                                    <?php $menu_sub02=main_Menu($msub01->term_id); ?>
                                    <?php if(is_array($menu_sub02) && $menu_sub02!=null){ ?>
                                    <?php foreach($menu_sub02 as $msub02){ ?>
                                    <li>
                                        <a href="<?php echo home_url()."?wpsc_product_category=".$msub02->slug;?>">
                                        <?php echo $msub02->name; ?>
                                        </a>
                                    </li>
                                    <?php }}?>
                                </ul>
								
                            </div>
							<?php if($i==2)echo"</div>";?>
							<?php }else{?>
							<?php if($i==3) echo '<div class="fleft">'; ?>
							<div class="menu-list">
                                <a href="<?php echo  home_url()."?wpsc_product_category=".$msub01->slug;?>"><label><?php echo $msub01->name; ?></label></a>
                                <!--<h3>Mua hàng outlet</h3>
                                <h4>Trực tiếp từ chính hãng tại mỹ</h4>-->
                                
								<ul class="fleft01" style="width:150px; margin-top:15px;">
                                    <?php $menu_sub02=main_Menu($msub01->term_id); ?>
                                    <?php if(is_array($menu_sub02) && $menu_sub02!=null){ ?>
                                    <?php foreach($menu_sub02 as $msub02){ ?>
                                    <li>
                                        <a href="<?php echo home_url()."?wpsc_product_category=".$msub02->slug;?>">
                                        <?php echo $msub02->name; ?>
                                        </a>
                                    </li>
                                    <?php }}?>
                                </ul>
								
                            </div>
							
							<?php }?>
							
            <?php }}?>
                        </div>
                        <!--menu-content-->
                    </div>
                    <!--menu-gradient-->                                
                </div><!--menu-expand-->
            </li>
            <?php }}?>
            <div class="online-supp" style="margin-top: 20px;">
                <a style="background:url(<?php echo get_template_directory_uri(); ?>/images/skype-icon.png)no-repeat center center;display: block;width: 150px;margin: 0 0 10px -4px !important;padding-left: 45px;background-position: top left;height: 20px" class="skype" href="Skype:cs.mafc?chat">skype hỗ trợ</a>
                    <br /> 
                <a style="background:url(<?php echo get_template_directory_uri(); ?>/images/yahoo-icon.png)no-repeat center center;display: block;width: 150px;padding-left: 45px;background-position: top left;height: 20px" class="yahoo" href="ymsgr:sendIM?cs.mafc@yahoo.com&m=Nội dung lời nhắn">yahoo hỗ trợ</a>
                </div>
            <div class="online-supp" style="margin: 20px 0px 0px 10px">
                <h2 style="font-weight: bold">Liên Hệ</h2>
                <p style="font-size: 13px;color: rgb(11, 11, 12) !important;font-weight: bold;font-family: arial;margin-top: 20px;">0908449681 Mr: Quốc Anh </br>
                0942886812 Mrs: Hiền</br>
               Mail:tranquocanh000@gmail.com</p>
            </div>
        </ul>
        <div class="menu-line"></div>
    </div>
    <div class="menu-popup" style=" margin-top: 310px !important;height: 245px !important">
			<?php if ( ! dynamic_sidebar( 'sidebar-1' ) ) : ?>
			<?php endif; // end sidebar widget area ?>
    </div>
    
</div>